
  </div>
  <div class="layui-footer text-right">
    宿舍报修系统 - CopyRight © <a target="_blank" href="https://www.akame.top">LKL</a>
  </div>
</div>
<script>
  window.user = null;
  layui.use(['element', 'jquery'], function () {
    var element = layui.element;
    var $ = layui.$;

    $.post('/api/repair/new', function (data) {
      var rs = data.payload;
      if (rs > 0) {
        $('#newrepairs').removeClass('layui-hide').html(rs);
      }
    });

    $.post('/info', function (data) {
      window.user = data.payload;
      $('#name').html(window.user.name);
    });
  });
</script>
</body>
</html>